Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.10.29
|
Leadtools.Medical.Caching Namespace > Cache Class > Add Method : Add(String,Byte[],CacheItemPriority,String) Method |
public virtual void Add( string id, byte[] data, CacheItemPriority priority, string dependency )
'Declaration Public Overloads Overridable Sub Add( _ ByVal id As String, _ ByVal data() As Byte, _ ByVal priority As CacheItemPriority, _ ByVal dependency As String _ )
'Usage Dim instance As Cache Dim id As String Dim data() As Byte Dim priority As CacheItemPriority Dim dependency As String instance.Add(id, data, priority, dependency)
public: virtual void Add( String^ id, array<byte>^ data, CacheItemPriority priority, String^ dependency )
This method will check whether the item already exists before inserting it. If the item exists this method will throw exception. To force the Cache object to try inserting the cache item call the Insert(String,Byte[],CacheItemPriority) method.